package pojo;


import lombok.Getter;
import lombok.Setter;

import java.util.HashSet;
import java.util.Set;


/**
 * Patient entity. @author MyEclipse Persistence Tools
 */
@Getter
@Setter
public class Patient  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private String name;
     private String idCard;
     private Integer sex;
     private Integer isMedicare;
     private String idMedicare;
     private String phone;
     private String address;
     private Set registries = new HashSet(0);


    // Constructors

    /** default constructor */
    public Patient() {
    }

    
    /** full constructor */
    public Patient(String name, String idCard, Integer sex, Integer isMedicare, String idMedicare, Set registries) {
        this.name = name;
        this.idCard = idCard;
        this.sex = sex;
        this.isMedicare = isMedicare;
        this.idMedicare = idMedicare;
        this.registries = registries;
    }

   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }

    public String getIdCard() {
        return this.idCard;
    }
    
    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public Integer getSex() {
        return this.sex;
    }
    
    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getIsMedicare() {
        return this.isMedicare;
    }
    
    public void setIsMedicare(Integer isMedicare) {
        this.isMedicare = isMedicare;
    }

    public String getIdMedicare() {
        return this.idMedicare;
    }
    
    public void setIdMedicare(String idMedicare) {
        this.idMedicare = idMedicare;
    }

    public Set getRegistries() {
        return this.registries;
    }
    
    public void setRegistries(Set registries) {
        this.registries = registries;
    }
   








}